package com.demo.clients;

import com.demo.entity.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("cloud-order")
@RequestMapping("order")
public interface OrderClient {
    @RequestMapping("{userId}")
    Order[] listByUserId(@PathVariable String userId);
}